package com.taskmanager.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDate;

/**
 * 任务请求DTO
 */
@Data
public class TaskRequest {
    
    @NotBlank(message = "任务标题不能为空")
    @Size(max = 200, message = "任务标题不能超过200个字符")
    private String title;
    
    @Size(max = 2000, message = "任务描述不能超过2000个字符")
    private String description;
    
    private String priority;  // LOW, MEDIUM, HIGH
    
    private String status;  // TODO, IN_PROGRESS, COMPLETED
    
    private Long categoryId;
    
    private LocalDate dueDate;
}
